package com.infocollect.project.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.infocollect.project.api.entity.TappActionRoleEntity;
import com.infocollect.project.api.vo.ActionRoleVO;
import com.infocollect.project.api.vo.UserButtonActionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单按钮角色权限
 *
 * @author makejava
 * @since 2019-12-25 10:32:28
 */
public interface TappActionRoleMapper extends BaseMapper<TappActionRoleEntity> {

    List<UserButtonActionVO> getCurrentMenuAction( @Param("deptCode") String deptCode, @Param("organCode") String organCode, @Param("userName") String userName);

    /**
     * 根据角色ID 获取角色菜单动作权限
     *
     * @param
     * @return
     */
    List<ActionRoleVO> queryByRoleMenuId(Long roleId,Long menuId);
}
